
CREATE TABLE [dbo].[CD_ProductoFoto](
	[IdProductoFoto] [int] IDENTITY(1,1) NOT NULL,
	[Archivo] [varchar](50) NULL,
	[IdProducto] [int] NULL,
 CONSTRAINT [PK_CD_ProductoFoto] PRIMARY KEY CLUSTERED 
(
	[IdProductoFoto] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE [dbo].[CD_ProductoFoto]  WITH CHECK ADD  CONSTRAINT [FK_CD_ProductoFoto_CD_Producto] FOREIGN KEY([IdProducto])
REFERENCES [dbo].[CD_Producto] ([IdProducto])
GO

ALTER TABLE [dbo].[CD_ProductoFoto] CHECK CONSTRAINT [FK_CD_ProductoFoto_CD_Producto]
GO


